import request from '@/utils/request'
import axios from 'axios'

export function sysRoleMenuList(params) {
	return request({
		url: '/system/sysRoleMenu/query',
		method: 'get',
		params
	})
}

export function sysRoleMenuAllList(params) {
	return request({
		url: '/system/sysRoleMenu/queryByAll',
		method: 'get',
		params
	})
}

export function addSysRoleMenu(params) {
	return request({
		url: '/system/sysRoleMenu/add',
		method: 'get',
		params
	})
}

export function modifySysRoleMenu(params) {
	return request({
		url: '/system/sysRoleMenu/modify',
		method: 'get',
		params
	})
}

export function deleteSysRoleMenu(params) {
	return request({
		url: '/system/sysRoleMenu/deleteByBatch',
		method: 'get',
		params
	})
}

export function saveSysRoleMenu(params) {
  return request({
    url: '/system/sysRoleMenu/saveSysRoleMenu',
    method: 'post',
    params
  })
}


/**
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702616,'/sysRoleMenuList','system/sysRoleMenuList',NULL,'sysRoleMenuList','系统角色菜单',NULL,10000,1,100,now(), now(), NULL, NULL, 3);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702617,NULL,'system/sysRoleMenuList',NULL,'addRec','添加',NULL,1649889710702616,1,10,now(), now(), NULL, NULL, 2);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702618,NULL,'system/sysRoleMenuList',NULL,'editRec','修改',NULL,1649889710702616,1,20,now(), now(), NULL, NULL, 2);
INSERT INTO `VueMenu`(`id`, `path`, `component`, `redirect`, `name`, `title`, `icon`, `parentId`, `status`, `sortNum`, `createTime`, `modifyTime`, `hidden`, `agentId`, `type`) VALUES (1649889710702619,NULL,'system/sysRoleMenuList',NULL,'deleteRec','删除',NULL,1649889710702616,1,30,now(), now(), NULL, NULL, 2);

**/
